package leaveSystem.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import leaveSystem.model.LeaveType;

public interface LeaveTypeDAO {
	 public List<LeaveType> loadAll(Connection conn) throws SQLException;
	 public void insertLeaveType(Connection conn, LeaveType valueObject) throws SQLException;
	 public void updateLeaveType(Connection conn, LeaveType valueObject) throws DAOException, SQLException;
	 public void deleteLeaveType(Connection conn, LeaveType valueObject) throws DAOException, SQLException;
	 public void deleteAllLeaveType(Connection conn) throws SQLException;
	 public List<LeaveType> findLeaveType(Connection conn, LeaveType valueObject) throws SQLException;
}
